package fr.cephb.joperon.core.db;
import fr.cephb.joperon.core.Operon;
import fr.cephb.joperon.core.db.base.BaseGtypesDB;


/**
 * class GtypesDB
 */
public class GtypesDB
	extends BaseGtypesDB
	{
	private String popCode;
	/**
     *
     * GtypesDB Constructor 
     * @param operon operon
     * @param popCode population e.g. HapMap_D6
     */
	public GtypesDB(Operon operon,String popCode)
		{
		super(operon);
		this.popCode=popCode;
		}
	
	/**
     *
     * GtypesDB Constructor 
     *
     */
	public GtypesDB(Operon operon,fr.cephb.joperon.core.bio.Assembly assembly,String popCode)
		{
		super(operon,assembly);
		this.popCode = popCode;
		}
	
	/** return population population e.g. HapMap_D6 */
	public String getPopulationCode()
		{
		return this.popCode;
		}
	
	@Override
	public String getName() {
		return getAssemblySpecificPath(getAssembly())+"/gtypes/"+getPopulationCode()+".bdb";
		}
	}

